<template>
    <div class="son">
        son Component
        儿子现在有{{sonMoney}}元
        <br>
        Father is money:{{moneyF}}
        <button @click="getSonMoney(sonMoney)">给父亲钱</button>
    </div>
</template>
<script setup>
import {ref} from 'vue'
let sonMoney = ref(100);
defineProps(['moneyF','getSonMoney']);
</script>
<style scoped>
.son{
    width: 50vw;
    background-color: red;
}
</style>